package com.zhangyusheng.easyecharts.component;


import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * TODO: 线型
 *
 * @author Michael zhang
 * @email zhangys_0217@sina.com
 * @since 2025年11月03日
 */
@Data
@Accessors(chain = true)
public class LineStyle implements Serializable {
    private final static long serialVersionUID = 2L;
    private int width;
    private String type;

    public static class Builder{
        private int width;
        private String type;

        public Builder width(int width){
            this.width = width;
            return this;
        }
        public Builder type(String type){
            this.type = type;
            return this;
        }


        public LineStyle build(){
            return new LineStyle(this);
        }
    }
    private LineStyle(Builder builder){
        this.width = builder.width;
        this.type = builder.type;
    }
}
